package com.xhsj.user.sms.process.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xhsj.user.sms.process.entity.TbPurchaseProcessHiTask;
import com.xhsj.user.sms.purchase.vo.ApprovalRecordListQueryVo;
import com.xhsj.user.sms.purchase.vo.ProgressNoticeListQueryVo;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 历史任务表 Mapper 接口
 * </p>
 *
 * @author suxiaolin
 * @since 2020-03-16
 */
@Mapper
public interface TbPurchaseProcessHiTaskMapper extends BaseMapper<TbPurchaseProcessHiTask> {

    /**
     * 修改历史审核数据
     * @author 苏小林
     * @date 2020/3/17 15:25
     * @param: tbBadgesProcessHiTask
     * @return: int
     */
    int updateHiTask(TbPurchaseProcessHiTask tbBadgesProcessHiTask);

    Integer delByDataId(@Param("id") String id);
    //进度通知
    List<ProgressNoticeListQueryVo> progressNoticeList(@Param("dataId") String dataId);

    //审批记录
    IPage<ApprovalRecordListQueryVo> approvalRecordList(Page<ApprovalRecordListQueryVo> page,
                                                        @Param("dataId") String dataId,
                                                        @Param("processType") int processType);

    //审批记录附件
    List<Map<Object,String>> approvalRecordListFile(@Param("dataId") String dataId);

}
